import reshandler from 'services/response-handler'
/*
 * 用车账单详情账单id获取
 */
function makeData(data) {
  console.log(data.carCost)
    return {
      carCost:{
        verifyRemarks: data.carCost.verifyRemarks,
        userName: data.carCost.member.userName,
        plateNumber: data.carCost.car.plateNumber,
        fleetname: data.carCost.fleet.name,
        happenDate: data.carCost.happenDate,
        frontExpenseName: data.carCost.frontExpenseName,
        userDefineAlias: data.carCost.userDefineAlias,
        cost: data.carCost.cost,
        images: data.carCost.images,
        verifyState: data.carCost.verifyState,
        verifyRemarks: data.carCost.verifyRemarks
      }
    }
}
export default function (params, success, fail) {
  this.$.get(params).then(reshandler.success(success, fail, makeData), reshandler.error(fail))
}
